3.2.43 \(\int \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \, dx\) [143]

Optimal. Leaf size=32 \[ \frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]

[Out]

sin(d*x+c)*(b*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {17, 2717} \begin {gather*} \frac {\sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]],x]

[Out]

(Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]])

Rule 17

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[a^(m + 1/2)*b^(n - 1/2)*(Sqrt[b*v]/Sqrt[a*v])
, Int[u*v^(m + n), x], x] /; FreeQ[{a, b, m}, x] &&  !IntegerQ[m] && IGtQ[n + 1/2, 0] && IntegerQ[m + n]

Rule 2717

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \, dx &=\frac {\sqrt {b \cos (c+d x)} \int \cos (c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 32, normalized size = 1.00 \begin {gather*} \frac {\sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]],x]

[Out]

(Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]])

________________________________________________________________________________________

Maple [A]
time = 0.13, size = 29, normalized size = 0.91

method result size
default \(\frac {\sin \left (d x +c \right ) \sqrt {b \cos \left (d x +c \right )}}{d \sqrt {\cos \left (d x +c \right )}}\) \(29\)
risch \(-\frac {i \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{2 i \left (d x +c \right )}}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right )}{\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}\) \(85\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

sin(d*x+c)*(b*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)

________________________________________________________________________________________

Maxima [A]
time = 0.59, size = 13, normalized size = 0.41 \begin {gather*} \frac {\sqrt {b} \sin \left (d x + c\right )}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

sqrt(b)*sin(d*x + c)/d

________________________________________________________________________________________

Fricas [A]
time = 0.46, size = 28, normalized size = 0.88 \begin {gather*} \frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \sqrt {\cos \left (d x + c\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

sqrt(b*cos(d*x + c))*sin(d*x + c)/(d*sqrt(cos(d*x + c)))

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 60 vs. \(2 (29) = 58\).
time = 1.83, size = 60, normalized size = 1.88 \begin {gather*} \begin {cases} x \sqrt {b \cos {\left (c \right )}} \sqrt {\cos {\left (c \right )}} & \text {for}\: d = 0 \\0 & \text {for}\: c = - d x + \frac {\pi }{2} \vee c = - d x + \frac {3 \pi }{2} \\\frac {\sqrt {b \cos {\left (c + d x \right )}} \sin {\left (c + d x \right )}}{d \sqrt {\cos {\left (c + d x \right )}}} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**(1/2)*(b*cos(d*x+c))**(1/2),x)

[Out]

Piecewise((x*sqrt(b*cos(c))*sqrt(cos(c)), Eq(d, 0)), (0, Eq(c, -d*x + pi/2) | Eq(c, -d*x + 3*pi/2)), (sqrt(b*c
os(c + d*x))*sin(c + d*x)/(d*sqrt(cos(c + d*x))), True))

________________________________________________________________________________________

Giac [A]
time = 0.74, size = 31, normalized size = 0.97 \begin {gather*} \frac {2 \, \sqrt {b} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2),x, algorithm="giac")

[Out]

2*sqrt(b)*tan(1/2*d*x + 1/2*c)/(d*tan(1/2*d*x + 1/2*c)^2 + d)

________________________________________________________________________________________

Mupad [B]
time = 0.39, size = 44, normalized size = 1.38 \begin {gather*} \frac {\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (2\,c+2\,d\,x\right )\,\sqrt {b\,\cos \left (c+d\,x\right )}}{d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2),x)

[Out]

(cos(c + d*x)^(1/2)*sin(2*c + 2*d*x)*(b*cos(c + d*x))^(1/2))/(d*(cos(2*c + 2*d*x) + 1))

________________________________________________________________________________________